@use "~/styles/variables.scss" as *;

.swiper-container {
    width: 100%;
    height: 490rpx;
}

.calendar-container {
    width: 700rpx;
    overflow: hidden;
    position: relative;
    padding: 25rpx 0 0;
    box-sizing: border-box;
    border-radius: 25rpx;
    .calendar-month {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        pointer-events: none;
        .bg-text {
            width: 100%;
            text-align: center;
            position: absolute;
            font-size: 150rpx;
            text-transform: uppercase;
            font-weight: bolder;
            top: calc(30% - 25rpx);
        }
    }
    .date-container {
        width: 100%;
        position: relative;
        .calendar-item {
            width: 100rpx;
            box-sizing: border-box;
        }
        .day-item {
            height: 40rpx;
            text-align: center;
            line-height: 50rpx;
            margin-bottom: 10rpx;
        }
        .date-item {
            height: 80rpx;
            &.active {
                .date-content {
                    background-color: #f9c907;
                    color: #000000;
                    .date-money,.date-name {
                        color: #000000;
                    }
                }
            }
            &.view-hide {
                opacity: 0.5;
                pointer-events: none;
            }
            &.today {
                .date-name {
                    color: #0577f9 !important;
                }
            }
            &.holiday {
                .date-name {
                    color: #f90505;
                }
            }
            .date-content {
                width: 90px;
                height: 100%;
                border-radius: 10rpx;
                .date-name {
                    transform: scale(0.8);
                }
                .date-money {
                    line-height: 20rpx;
                    transform: scale(0.8);
                }
                .money-income {
                    color: $color-income;
                }
                .money-pay {
                    color: $color-pay;
                }
            }
        }
    }
    .bottom-container {
        .switch-btn {
            border-top: 4rpx solid;
            border-bottom: 4rpx solid;
            height: 10rpx;
            width: 25rpx;
            margin: 15rpx;
        }
    }



    .active-info {
        width: 700rpx;
        margin-bottom: 20rpx;
        align-items: baseline;
        box-sizing: border-box;
        padding-left: 25rpx;
        .active-month {
            font-weight: bold;
        }
        .active-date {
            font-weight: bold;
            opacity: 0.8;
        }

        .btn-container {
            position: relative;
            width: 50rpx;
            height: 50rpx;
            margin-right: 30rpx;
            margin-left: 10rpx;
            .btn-bg {
                width: 100rpx;
                height: 100rpx;
                border-radius: 50%;
                border: 1px solid;
                transform: scale(0.5);
                position: absolute;
                left: -50%;
                top: -50%;
                box-sizing: border-box;
                &:active {
                    background-color: rgba(100,100,100, 0.5);
                }
            }
        }

        .back-today {
            width: 100rpx;
            .text {
                border: 1px solid;
                border-radius: 17rpx;
                line-height: 30rpx;
                text-align: center;
                padding: 0 6rpx;
            }
        }
    }
}